package main

//go get github.com/yuin/gopher-lua
import (
	"flag"
	"fmt"
	"runtime"

	"github.com/wonderivan/logger"
)

var (
	//appPath          string
	flagChildProcess = flag.Bool("child-process", false, "Child Process")
	isrunning        bool
)

func main() {
	fmt.Println("OS is " + runtime.GOOS)
	switch runtime.GOOS {
	case "windows":
		winInit()
		mainwin()
		break
	case "linux":
		linuxInit()
		mainlinux()
		break
	case "darwin":
		mainlinux()
		//maindarwin()
		break
	default:
		logger.Error("未知的操作系统")
		break
	}
}
